<template>
  <view class="wrap">
    <view class="box">
      <view class="icon">
        <image src="../static/success.png" class="img" mode="widthFix"></image>
      </view>
      <view class="title">支付成功</view>
      <button class="btn" hover-class="none" @click="back">完成</button>
    </view>
  </view>
</template>

<script setup>
function back(){
  uni.navigateBack({
    delta: 1
  });
}
</script>

<style lang="scss" scoped>
  .box{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    .btn{
      width: 432rpx;
      height: 72rpx;
      line-height: 72rpx;
      margin: 0 auto;
      margin-top: 90rpx;
    }
    .title{
      font-weight: 400;
      font-size: 30rpx;
      color: #2B2B2B;
      text-align: center;
    }
    .icon{
      width: 595rpx;
      margin: 0 auto;
      font-size: 0;
    }
  }
  .wrap{
    width: 100%;
    min-height: 100vh;
    position: relative;
  }
</style>